]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: don't hook up overview keybinding until after startup
authorRay Strode <rstrode@redhat.com>
Mon, 4 Mar 2013 13:07:14 +0000 (08:07 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 4 Mar 2013 16:58:39 +0000 (11:58 -0500)
Toggling the overview during the startup animation reportedly
causes stuck grab and other odd behavior.

There's no reason to handle toggling the overview during this
time anyway.

This commit defers that handling until after startup.

https://bugzilla.gnome.org/show_bug.cgi?id=694837

js/ui/layout.js
js/ui/main.js

index 61e22506641d88dd471111491c0eef05edf63a9d..b178b53c88ef28c432df5d6276c361e4e52595e8 100644 (file)
@@ -639,6 +639,8 @@ const LayoutManager = new Lang.Class({
         this.emit('panel-box-changed');
 
         this._queueUpdateRegions();
+
+        this.emit('startup-complete');
     },
 
     showKeyboard: function () {
index d3ce7df764b10e4f2ef78b12093cb3235723e6b4..4025bd7873e2ecf84ef621e43c268e90af6cd3f0 100644 (file)
@@ -58,7 +58,7 @@ let shellDBusService = null;
 let shellMountOpDBusService = null;
 let screenSaverDBus = null;
 let modalCount = 0;
-let keybindingMode = Shell.KeyBindingMode.NORMAL;
+let keybindingMode = Shell.KeyBindingMode.NONE;
 let modalActorFocusStack = [];
 let uiGroup = null;
 let magnifier = null;
@@ -202,6 +202,11 @@ function startSession() {
     layoutManager.connect('startup-prepared', function() {
                               layoutManager.startupAnimation();
                           });
+    layoutManager.connect('startup-complete', function() {
+                              if (keybindingMode == Shell.KeyBindingMode.NONE) {
+                                  keybindingMode = Shell.KeyBindingMode.NORMAL;
+                              }
+                          });
 }
 
 let _workspaces = [];